Function at 0x4ddd00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x4c]
cmp ebx, 0xffffffff
push ebp
push esi
push edi
jne 0x4ddd1b
call fcn.0050a2a0
mov dword [esp + 0x58], eax
mov ebx, eax
call fcn.004eb860
push 0
mov dword [esp + 0x1c], eax
call fcn.004ebd50
lea eax, [esp + 0x20]
push eax
call fcn.00507780
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x24]
add esp, 8
cmp esi, eax
jge 0x4ddd46
mov esi, eax
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
cmp edi, ecx
jge 0x4ddd54
mov edi, ecx
mov ecx, dword [esp + 0x24]
cmp esi, ecx
jle 0x4ddd6a
sub eax, ecx
mov edi, edi
add edi, dword [esp + 0x48]
add esi, eax
cmp esi, ecx
jg 0x4ddd60
mov eax, dword [esp + 0x68]
cmp eax, 0xffffffff
jne 0x4dde60
mov ebp, dword [esp + 0x4c]
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebp
call fcn.0050f3d0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push 0
push ecx
push ebx
mov ebp, eax
mov eax, dword [esp + 0x68]
push edx
push eax
push edi
push esi
mov dword [esp + 0x6c], ebp
call fcn.005100b0
mov ecx, dword [esp + 0x74]
add esp, 0x2c
lea ebx, [edi + ecx]
push ebx
lea edx, [esi + ebp]
push edx
push edi
push esi
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
call fcn.00525aa0
mov edi, dword [esp + 0x34]
sub edi, dword [esp + 0x3c]
add esp, 8
add edi, ebp
test edi, edi
jle 0x4ddfb5
jmp 0x4dddf4
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x50]
push 0
push eax
mov eax, dword [esp + 0x54]
push ecx
push edx
mov esi, edi
sub esi, ebp
add esi, dword [esp + 0x2c]
push eax
mov ebp, ebx
push ebp
push esi
call fcn.005100b0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
add esp, 0x1c
lea ebx, [ecx + ebp]
push ebx
lea eax, [esi + edx]
push eax
push ebp
push esi
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.00525aa0
mov ecx, dword [esp + 0x34]
sub ecx, dword [esp + 0x3c]
add esp, 8
add edi, ecx
test edi, edi
jg 0x4dddf0
jmp 0x4ddfb5
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
jge 0x4dde72
mov dword [esp + 0x68], ecx
mov dword [esp + 0x44], eax
jmp 0x4dde7a
mov dword [esp + 0x68], eax
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], 0
jle 0x4ddfb5
lea esp, [esp]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [0x71567c]
lea ebp, [eax + ecx]
push edx
push ebp
call fcn.0050a300
add esp, 8
test eax, eax
je 0x4ddee7
movzx eax, byte [ebp]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x4c]
mov byte [esp + 0x58], al
movzx eax, byte [ecx + edx + 1]
mov byte [esp + 0x59], al
mov byte [esp + 0x5a], 0
mov dword [esp + 0x10], 2
jmp 0x4ddefb
mov cl, byte [ebp]
mov byte [esp + 0x58], cl
mov byte [esp + 0x59], 0
mov dword [esp + 0x10], 1
push 0
push ebx
lea edx, [esp + 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.0050f3d0
mov ebp, eax
mov eax, dword [esp + 0x50]
add esp, 0x10
cmp eax, dword [esp + 0x44]
jl 0x4ddf68
cmp eax, dword [esp + 0x68]
jge 0x4ddf68
mov ecx, dword [esp + 0x5c]
push 1
push ecx
push ebx
call fcn.0050a330
add esp, 4
add eax, edi
push eax
lea edx, [esi + ebp]
push edx
push edi
push esi
call fcn.00504ee0
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
push 0
push eax
push ebx
push ecx
lea edx, [esp + 0x80]
push edx
push edi
push esi
call fcn.005100b0
add esp, 0x34
jmp 0x4ddf84
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push 0
push eax
push ebx
push ecx
lea edx, [esp + 0x68]
push edx
push edi
push esi
call fcn.005100b0
add esp, 0x1c
mov ecx, dword [esp + 0x24]
lea eax, [esi + ebp]
cmp eax, ecx
jle 0x4ddf9d
mov eax, dword [esp + 0x1c]
sub eax, ecx
add esi, eax
add edi, dword [esp + 0x48]
jmp 0x4ddfa7
mov ecx, dword [esp + 0x10]
add dword [esp + 0x40], ecx
mov esi, eax
mov edx, dword [esp + 0x40]
cmp edx, dword [esp + 0x14]
jl 0x4ddea0
mov eax, dword [esp + 0x18]
push eax
call fcn.004ebd50
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret