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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x540
mov eax, dword [0x42b238]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x538], eax
mov eax, dword [edi + 4]
mov esi, dword [ecx]
test eax, eax
je 0x481406
cmp byte [eax], 0
mov dword [esp + 0x10], esi
je 0x4814a1
xor eax, eax
inc eax
push 0x20
push eax
call fcn.0043f807
add esp, 8
xor ecx, ecx
xor edx, edx
inc edx
mov dword [eax], ecx
mov dword [eax + 4], esi
mov dword [eax + 8], edx
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
push eax
push dword [ebp + 0xc]
call fcn.00481290
add esp, 8
mov eax, dword [edi + 8]
mov ecx, dword [ebx + 0xc]
test eax, eax
lea edx, [ecx - 4]
cmovne edx, ecx
mov dword [ebx + 0x18], edx
je 0x4813de
add ecx, 8
mov dword [ebx + 0xc], ecx
add ecx, 4
mov dword [ebx + 0xc], ecx
add dword [ebx + 0x10], 0xfffffff2
add dword [ebx + 0x14], 7
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1c], esi
mov dword [ebx + 0x20], eax
inc esi
cmp dword [edi + 4], 0
je 0x481406
mov dword [esp + 0x10], esi
jmp 0x4814a1
lea eax, [edi + 8]
mov dword [esp + 0x10], esi
cmp dword [eax], 0
je 0x4814a1
xor ecx, ecx
inc ecx
push 0x20
push ecx
mov dword [esp + 0x14], eax
call fcn.0043f807
add esp, 8
mov esi, eax
xor ebx, ebx
xor eax, eax
mov dword [esi], ebx
inc eax
mov edi, dword [esp + 0x10]
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0xc]
push dword [eax]
call fcn.0043f79e
add esp, 4
mov dword [esi + 0x1c], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
push esi
push dword [ebp + 0xc]
call fcn.00481290
add esp, 8
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov ecx, dword [ecx + 0x10]
lea edx, [eax + 0xf]
mov dword [esi + 0xc], edx
mov edx, 0xc
push edi
push ebx
push ebx
mov ebx, dword [ebp + 0x10]
push 0x5000000d
push str.STATIC
push edx
push ecx
push eax
push 3
push ebx
call fcn.00480173
add esp, 0x28
inc edi
mov dword [esp + 0x10], edi
lea edi, [esp + 0x2f8]
mov ecx, 9
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x14]
cmp dword [esi + 0x10], 0
jle 0x481e7a
xor edi, edi
xor ebx, ebx
inc edi
mov dword [esp + 0x1c], edi
xor edi, edi
mov eax, dword [esi + 0x18]
mov edx, dword [eax + edi*4]
mov eax, dword [edx]
mov dword [esp + 0x30], edi
cmp eax, 9
je 0x481605
cmp eax, 6
jne 0x48164b
xor eax, eax
mov esi, dword [esp + 0x1c]
inc eax
mov ecx, eax
cmp dword [edx + 0x1c], ecx
sete al
cmp esi, ecx
sete cl
xor cl, al
jne 0x48151e
push 0x575
push str..._windows_winctrls.c
push str._ctrl__columns.ncols__1____ncols__1_
mov esi, edx
call fcn.004a509d
mov edx, esi
mov esi, dword [esp + 0x28]
add esp, 0xc
cmp esi, 1
jne 0x48172a
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], edx
mov esi, dword [edx + 0x1c]
cmp esi, 0x11
jb 0x48154e
push 0x57e
push str..._windows_winctrls.c
push str.ncols___lenof_columns_
call fcn.004a509d
add esp, 0xc
cmp esi, 2
lea ebx, [esp + 0x2f8]
mov dword [esp + 0x1c], esi
jl 0x48157d
mov eax, dword [esp + 0x1c]
lea edx, [eax - 1]
lea eax, [esp + 0x31c]
mov edi, eax
mov ecx, 9
mov esi, ebx
add eax, 0x24
dec edx
rep movsd dword es:[edi], dword [esi]
jne 0x48156c
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x4815f9
mov eax, dword [esp + 0xc]
xor ebx, ebx
lea edi, [esp + 0x30c]
mov eax, dword [eax + 0x20]
mov dword [esp + 0x14], eax
xor eax, eax
mov ecx, dword [esp + 0x14]
mov edx, 0x51eb851f
mov ecx, dword [ecx + ebx*4]
inc ebx
add ecx, eax
mov dword [esp + 0xc], ecx
mov ecx, dword [edi - 4]
add ecx, 3
imul eax, ecx
imul ecx, dword [esp + 0xc]
imul edx
mov esi, edx
mov edx, 0x51eb851f
mov eax, esi
sar esi, 5
shr eax, 0x1f
add esi, eax
mov eax, ecx
imul edx
mov eax, edx
sar edx, 5
shr eax, 0x1f
add edx, eax
mov eax, dword [edi]
add esi, eax
lea eax, [eax + edx - 3]
sub eax, esi
mov dword [edi], esi
mov dword [edi - 4], eax
add edi, 0x24
cmp dword [esp + 0x1c], ebx
mov eax, dword [esp + 0xc]
jne 0x48159b
mov esi, dword [ebp + 0x14]
mov ebx, dword [esp + 0x20]
jmp 0x48176d
cmp dword [edx + 8], 0
je 0x481626
push 0x59f
push str..._windows_winctrls.c
push str._ctrl__generic.tabdelay
mov esi, edx
call fcn.004a509d
mov edx, esi
add esp, 0xc
mov edx, dword [edx + 0x1c]
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x481776
xor esi, esi
cmp dword [esp + esi*4 + 0x78], edx
je 0x481793
inc esi
cmp esi, ebx
jl 0x481637
jmp 0x481778
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], edx
lea edi, [esp + 0x3c]
mov eax, dword [edx + 0xc]
movzx ebx, ax
shr eax, 0x10
lea ecx, [ebx*4]
lea edx, [ecx + ecx*8]
lea ecx, [esp + edx + 0x2f8]
mov dword [esp + 0x14], ecx
mov ecx, 9
mov esi, dword [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + eax]
lea ecx, [ecx + ecx*8]
mov esi, dword [esp + ecx*4 + 0x30c]
add esi, dword [esp + ecx*4 + 0x308]
lea ecx, [eax + ebx + 1]
inc eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
sub esi, dword [eax + 0x14]
mov dword [esp + 0x4c], esi
lea esi, [esp + 0x304]
mov eax, dword [esp + 0x48]
add edx, esi
mov esi, ebx
mov edi, dword [edx]
cmp eax, edi
jge 0x4816c3
mov eax, edi
mov dword [esp + 0x48], edi
inc esi
add edx, 0x24
cmp esi, ecx
jl 0x4816b7
mov edx, dword [esp + 0xc]
cmp dword [edx + 8], 0
je 0x4817b1
mov esi, dword [esp + 0x20]
cmp esi, 0x10
jb 0x4816fd
push 0x5c4
push str..._windows_winctrls.c
push str.ntabdelays___lenof_tabdelays_
call fcn.004a509d
mov edx, dword [esp + 0x18]
add esp, 0xc
lea eax, [esi + esi*8]
mov ecx, 9
lea edi, [esp + eax*4 + 0xb8]
mov eax, esi
lea esi, [esp + 0x3c]
rep movsd dword es:[edi], dword [esi]
mov dword [esp + eax*4 + 0x78], edx
inc eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x20], eax
jmp 0x4817b1
mov eax, dword [esp + 0x304]
cmp esi, 2
lea edi, [esp + 0x2f8]
jl 0x481752
dec esi
lea ecx, [esp + 0x328]
mov edx, dword [ecx]
cmp eax, edx
cmovl eax, edx
add ecx, 0x24
dec esi
jne 0x481745
mov esi, dword [ebp + 0x10]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x14]
mov dword [esp + 0x304], eax
xor edi, edi
inc edi
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x30]
jmp 0x481e64
xor esi, esi
push 0x5a5
push str..._windows_winctrls.c
push str.i___ntabdelays
mov edi, edx
call fcn.004a509d
mov edx, edi
add esp, 0xc
lea eax, [esi + esi*8]
mov ecx, 9
lea edi, [esp + 0x3c]
lea esi, [esp + eax*4 + 0xb8]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
dec eax
mov dword [esp + 0x2c], eax
mov ebx, eax
xorps xmm0, xmm0
movaps xmmword [esp + 0x60], xmm0
mov eax, dword [edx]
mov dword [esp + 0xc], edx
cmp eax, 8
ja case.0x4817c8.6
jmp dword [eax*4 + 0x41aa48]
lea eax, [esp + 0x38]
push eax
push dword [edx + 4]
mov eax, dword [ebp + 0x10]
push dword [eax]
lea eax, [esp + 0x48]
push eax
call fcn.0048048a
add esp, 0x10
xor edx, edx
mov ecx, eax
mov dword [esp + 0x14], eax
call fcn.00481ed1
mov edi, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
lea esi, [ecx + eax*8 + 3]
shl eax, 3
mov dword [esp + 0x48], esi
mov esi, dword [esp + 0x10]
push esi
push edi
push 0
push 0x5000000c
push str.STATIC
push eax
push edx
push ecx
mov eax, 3
push eax
lea eax, [esp + 0x60]
push eax
call fcn.00480173
add esp, 0x28
push edi
call fcn.0043f9d4
add esp, 4
push dword [esp + 0x14]
call fcn.0043f9d4
xor ecx, ecx
add esp, 4
jmp 0x481a7f
mov eax, dword [esp + 0xc]
mov ecx, dword [edx + 4]
movsx edx, byte [eax + 0x1c]
call fcn.00481ed1
mov edx, dword [esp + 0xc]
mov esi, eax
mov al, byte [edx + 0x1c]
mov byte [esp + 0x60], al
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x28]
cmp eax, 0x64
jne 0x481c26
mov edi, dword [esp + 0x10]
test ecx, ecx
lea eax, [edi + 1]
je 0x481c6a
push eax
push edi
push esi
lea eax, [esp + 0x48]
push eax
call fcn.0048030e
add esp, 0x10
jmp 0x481ca2
mov eax, dword [edx + 0x24]
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xc]
movsx edx, byte [eax + 0x1c]
call fcn.00481ed1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xc]
mov al, byte [eax + 0x1c]
mov byte [esp + 0x60], al
push 8
mov eax, dword [esp + 0x10]
push dword [eax + 0x24]
call fcn.0043f807
mov edx, dword [esp + 0x14]
add esp, 8
mov dword [esp + 0x28], eax
mov edi, dword [edx + 0x24]
test edi, edi
jle 0x481977
mov eax, dword [esp + 0x10]
xor esi, esi
xor ecx, ecx
inc ecx
inc eax
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0x2c]
mov dword [esp + 0x14], ecx
test eax, eax
je 0x48190b
mov al, byte [eax + esi]
jmp 0x48190d
xor eax, eax
mov ecx, dword [edx + 0x28]
mov edi, dword [esp + 0x28]
movsx edx, al
mov ecx, dword [ecx + esi*4]
call fcn.00481ed1
mov edx, dword [esp + 0xc]
mov dword [edi + esi*8], eax
mov eax, dword [esp + 0x24]
lea eax, [eax + esi]
mov dword [edi + esi*8 + 4], eax
mov eax, dword [edx + 0x2c]
test eax, eax
je 0x48196d
mov edi, dword [esp + 0x14]
cmp edi, 0x10
jl 0x48195f
push 0x614
push str..._windows_winctrls.c
push str.nshortcuts___MAX_SHORTCUTS_PER_CTRL
call fcn.004a509d
mov edx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [edx + 0x2c]
mov cl, byte [eax + esi]
mov byte [esp + edi + 0x60], cl
inc edi
mov dword [esp + 0x14], edi
jmp 0x48196f
xor eax, eax
mov edi, dword [edx + 0x24]
inc esi
cmp esi, edi
jl 0x481902
mov esi, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x3c]
push edi
mov ebx, dword [esp + 0x2c]
push ebx
push dword [esi + 0x20]
push dword [esp + 0x1c]
call fcn.0048037c
mov eax, esi
add esp, 0x10
cmp dword [eax + 0x24], 0
jle 0x4819b9
xor esi, esi
push dword [ebx + esi*8]
mov edi, eax
call fcn.0043f9d4
mov eax, edi
add esp, 4
inc esi
cmp esi, dword [eax + 0x24]
jl 0x4819a4
inc dword [esp + 0x18]
push ebx
call fcn.0043f9d4
add esp, 4
push dword [esp + 0x34]
call fcn.0043f9d4
add esp, 4
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
xor ecx, ecx
jmp 0x481da5
mov edi, edx
mov ecx, dword [edx + 4]
movsx edx, byte [edi + 0x1c]
call fcn.00481ed1
mov esi, eax
mov al, byte [edi + 0x1c]
mov ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x10]
mov byte [esp + 0x60], al
mov eax, dword [esp + 0x48]
lea edx, [eax + 0xb]
mov dword [esp + 0x48], edx
push edi
push esi
push 0
push 0x50014003
push str.BUTTON
push 8
push ecx
push eax
push 3
lea eax, [esp + 0x60]
push eax
call fcn.00480173
add esp, 0x28
push esi
call fcn.0043f9d4
add esp, 4
xor ecx, ecx
xor eax, eax
mov esi, edi
jmp 0x481a81
mov edi, edx
mov ecx, dword [edx + 4]
movsx edx, byte [edi + 0x1c]
call fcn.00481ed1
mov cl, byte [edi + 0x1c]
mov esi, 2
mov byte [esp + 0x60], cl
cmp dword [edi + 0x24], 0
cmove esi, dword [esp + 0x10]
push dword [edi + 0x20]
push esi
mov edi, eax
push edi
lea eax, [esp + 0x48]
push eax
call fcn.0048071d
add esp, 0x10
push edi
call fcn.0043f9d4
add esp, 4
xor ecx, ecx
xor eax, eax
inc eax
mov dword [esp + 0x18], eax
jmp 0x481da5
mov eax, dword [esp + 0xc]
mov ecx, dword [edx + 4]
movsx edx, byte [eax + 0x1c]
call fcn.00481ed1
mov edx, dword [esp + 0xc]
mov esi, eax
mov al, byte [edx + 0x1c]
mov byte [esp + 0x60], al
cmp dword [edx + 0x24], 0
mov dword [esp + 0x34], esi
je 0x481c41
push 0x18
xor eax, eax
inc eax
push eax
call fcn.0043f807
add esp, 8
mov edi, dword [esp + 0x10]
mov ecx, eax
lea eax, [edi + 3]
lea edx, [edi + 2]
mov dword [esp + 0x14], edx
lea edx, [edi + 1]
push eax
push dword [esp + 0x18]
push edx
push edi
push esi
mov esi, dword [esp + 0x20]
push dword [esi + 0x20]
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x30], ecx
push ecx
call fcn.00480b37
add esp, 0x20
mov word [esp + 0x61], 0x6475
mov dword [esp + 0x18], 4
jmp 0x481cfc
push 0x67d
push str..._windows_winctrls.c
push str.__Cant_happen_
call fcn.004a509d
add esp, 0xc
mov esi, dword [esp + 0x10]
xor ecx, ecx
mov dword [esp + 0x18], 0
jmp 0x481da5
mov edi, edx
mov ecx, dword [edx + 4]
movsx edx, byte [edi + 0x1c]
call fcn.00481ed1
mov esi, eax
mov al, byte [edi + 0x1c]
mov edi, dword [esp + 0x10]
mov byte [esp + 0x60], al
lea eax, [edi + 2]
lea ecx, [edi + 1]
push eax
push str.Browse...
push ecx
push edi
push esi
lea eax, [esp + 0x50]
push eax
call fcn.00480a7c
add esp, 0x18
mov byte [esp + 0x61], 0x77
push esi
call fcn.0043f9d4
add esp, 4
mov dword [esp + 0x18], 3
jmp 0x481cb3
mov esi, edx
mov ecx, dword [edx + 4]
movsx edx, byte [esi + 0x1c]
call fcn.00481ed1
mov edi, eax
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x14], edi
mov al, byte [esi + 0x1c]
mov esi, dword [esp + 0x10]
mov byte [esp + 0x60], al
mov eax, dword [esp + 0x48]
lea edx, [eax + 0xb]
mov dword [esp + 0x48], edx
push esi
push edi
xor edi, edi
push edi
push 0x5000000c
push str.STATIC
push 8
push ecx
push eax
push 3
lea eax, [esp + 0x60]
push eax
call fcn.00480173
add esp, 0x28
lea eax, [esi + 2]
lea ecx, [esi + 1]
push eax
push str.Change...
push ecx
mov eax, 0x402159
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0048069d
add esp, 0x14
push edi
push edi
push edi
mov eax, 0x402159
push eax
call fcn.0048f919
add esp, 0x10
mov edi, eax
push dword [esp + 0x14]
call fcn.0043f9d4
mov ecx, edi
add esp, 4
mov dword [esp + 0x18], 3
jmp 0x481da5
test ecx, ecx
je 0x481c7c
mov edi, dword [esp + 0x10]
lea ecx, [edi + 1]
push eax
push ecx
push edi
push esi
lea eax, [esp + 0x4c]
push eax
call fcn.004808ec
jmp 0x481c9f
mov eax, dword [edx + 0x20]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x481cba
lea ecx, [edi + 1]
push dword [edx + 0x28]
push eax
push ecx
push edi
push esi
lea eax, [esp + 0x50]
push eax
mov esi, edx
call fcn.004809eb
add esp, 0x18
jmp 0x481cec
push eax
push edi
push esi
push dword [edx + 0x24]
lea eax, [esp + 0x4c]
push eax
call fcn.0048028f
jmp 0x481c9f
cmp dword [edx + 0x24], 0
mov edi, dword [esp + 0x10]
mov ecx, 0x480785
mov edx, 0x48083b
cmovne ecx, edx
lea edx, [edi + 1]
push eax
push edx
push edi
push esi
lea eax, [esp + 0x4c]
push eax
call ecx
add esp, 0x14
push esi
call fcn.0043f9d4
add esp, 4
mov dword [esp + 0x18], 2
xor ecx, ecx
jmp 0x481da3
mov ecx, dword [edx + 0x2c]
lea eax, [edi + 1]
cmp ecx, 0x64
jne 0x481cd7
push eax
push edi
push esi
lea eax, [esp + 0x48]
push eax
call fcn.0048097e
add esp, 0x10
jmp 0x481ce8
push ecx
push eax
push edi
push esi
lea eax, [esp + 0x4c]
push eax
call fcn.0048085a
add esp, 0x14
mov esi, dword [esp + 0xc]
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x481d93
mov edi, dword [esp + 0xc]
mov dword [esp + 0x24], ebx
mov ecx, dword [ebp + 0x10]
dec eax
mov esi, dword [edi + 0x2c]
imul esi, dword [ecx + 0x10]
push 4
push eax
call fcn.0043f807
mov edx, edi
add esp, 8
mov ebx, dword [edx + 0x30]
cmp ebx, 2
jl 0x481d69
mov dword [esp + 0x28], esi
mov esi, eax
xor ecx, ecx
xor edi, edi
mov eax, dword [edx + 0x34]
mov edx, 0x68db8bad
add ecx, dword [eax + edi*4]
mov eax, dword [esp + 0x28]
imul eax, ecx
imul edx
mov eax, edx
sar edx, 0xc
shr eax, 0x1f
add edx, eax
mov dword [esi + edi*4], edx
inc edi
mov edx, dword [esp + 0xc]
mov ebx, dword [edx + 0x30]
dec ebx
cmp edi, ebx
jl 0x481d39
jmp 0x481d6c
dec ebx
mov esi, eax
mov edi, dword [esp + 0x10]
lea ecx, [edi + 1]
push esi
push ebx
push 0x192
push ecx
mov eax, dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push esi
call fcn.0043f9d4
add esp, 4
mov ebx, dword [esp + 0x24]
push dword [esp + 0x34]
call fcn.0043f9d4
add esp, 4
mov ecx, dword [esp + 0x14]
mov esi, edi
cmp dword [esp + 0x3c], 0
je 0x481e1f
push 0x20
push 1
mov dword [esp + 0x1c], ecx
call fcn.0043f807
add esp, 8
mov edi, eax
mov eax, dword [esp + 0xc]
mov dword [edi], eax
mov dword [edi + 4], esi
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x18]
mov dword [edi + 8], esi
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1c], eax
movsd xmm0, qword [esp + 0x60]
movsd xmm1, qword [esp + 0x68]
movsd qword [edi + 0x14], xmm1
movsd qword [edi + 0xc], xmm0
push edi
push dword [ebp + 0xc]
call fcn.00481290
add esp, 8
push edi
push dword [ebp + 8]
call fcn.004810f6
add esp, 8
mov eax, dword [esp + 0x10]
mov ecx, 0
cmp dword [esp + 0xc], eax
cmovne esi, ecx
add eax, esi
mov dword [esp + 0x10], eax
jmp 0x481e28
push ecx
call fcn.0043f9d4
add esp, 4
mov esi, dword [ebp + 0x14]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
test ebx, ebx
js 0x481e60
test eax, eax
jle 0x481e60
add eax, ebx
lea ecx, [ebx + ebx*8]
lea edx, [esp + 0x304]
mov dword [esp + 0x2c], eax
lea ecx, [edx + ecx*4]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
inc ebx
mov dword [ecx], eax
add ecx, 0x24
cmp ebx, edx
jl 0x481e56
mov ebx, dword [esp + 0x20]
inc edi
cmp edi, dword [esi + 0x10]
jl 0x4814c9
cmp dword [esp + 0x1c], 0
mov ebx, dword [ebp + 0x10]
jg 0x481e81
jmp 0x481e9f
xor eax, eax
inc eax
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x304]
mov edx, dword [eax]
cmp ecx, edx
jge 0x481e96
mov ecx, edx
mov dword [ebx + 0xc], edx
add eax, 0x24
dec dword [esp + 0x1c]
jne 0x481e8b
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x481ebd
cmp byte [eax], 0
je 0x481ebd
push ebx
call fcn.0048023b
add esp, 4
mov ecx, dword [esp + 0x538]
call fcn.00497c4a
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret