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

Disassembly:
sub esp, 0x30
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
mov eax, dword [ebp + 0xd4]
test eax, eax
push esi
push edi
je 0x479470
mov ecx, dword [ebp + 0xd8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, eax
shr ecx, 2
test al, 3
mov dword [ebp + 0xac], eax
mov dword [ebp + 0xbc], ecx
jne 0x47948e
add ecx, 0xffffffff
mov dword [ebp + 0xbc], ecx
mov ecx, dword [ebp + 0xb4]
add ecx, ecx
add ecx, ecx
sub eax, ecx
mov dword [esp + 0x10], eax
cmp eax, 4
mov dword [esp + 0x44], 4
lea eax, [esp + 0x44]
ja 0x4794b3
lea eax, [esp + 0x10]
mov ebx, dword [ebp + 0x78]
cmp dword [ebp + 0x74], ebx
mov edx, dword [eax]
mov dword [esp + 0x14], edx
jbe 0x4794c6
call fcn.004af167
mov edi, dword [ebp + 0x74]
cmp edi, dword [ebp + 0x78]
jbe 0x4794d3
call fcn.004af167
cmp edi, ebx
je 0x4794e2
mov eax, dword [ebp + 0x78]
call fcn.0040fc10
mov dword [ebp + 0x78], eax
mov ecx, dword [ebp + 0x88]
mov eax, dword [ecx]
mov edx, dword [eax + 0x74]
push 1
push 0
push 0x76
push 0x280
push 0
push 0
call edx
mov edx, dword [ebp + 0x8c]
mov ecx, dword [ebp + 0x88]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
push 1
push 0x78
push 0x200
push edx
push 0x76
push 0x80
push 0
push 0x200
call eax
mov ecx, dword [ebp + 0xb4]
add ecx, ecx
add ecx, ecx
xor esi, esi
mov dword [ebp + 0xb8], ecx
mov dword [esp + 0x10], esi
mov ebx, 0x1c
mov dword [esp + 0x44], 0x68
lea esp, [esp]
mov edi, dword [ebp + 0x8c]
mov ecx, dword [ebp + 0x88]
mov edx, dword [ecx]
push 1
push 0x78
lea eax, [ebx - 0x1c]
push eax
push edi
push 0x76
push 0x80
push 0
push eax
mov eax, dword [edx + 0x44]
call eax
cmp esi, dword [esp + 0x14]
jae 0x479ace
mov eax, dword [ebp + 0xd4]
test eax, eax
mov ecx, dword [ebp + 0xb4]
lea edi, [esi + ecx*4]
je 0x4795b2
mov ecx, dword [ebp + 0xd8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4795b7
call fcn.004af167
mov eax, dword [ebp + 0xd4]
lea edx, [edi*8]
sub edx, edi
mov ecx, dword [eax + edx*2]
mov edi, dword [ebp + 0x98]
add ecx, 1
push ecx
call fcn.0048ea10
mov eax, dword [ebp + 0x98]
mov ecx, dword [ebp + 0x94]
mov edi, dword [esp + 0x44]
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
push 1
push 0
push 0
push eax
push 0x5a
push 0x78
push 0x5a
add edi, 0xffffff98
push edi
call edx
mov ecx, dword [ebp + 0x98]
mov eax, dword [ecx]
mov edx, dword [eax + 0x70]
push 0x5a
push 0x78
push 0
push 0
call edx
mov edx, dword [ebp + 0x98]
mov ecx, dword [ebp + 0x94]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
push 1
push 0
push 0
push edx
push 0x5a
push 0x78
push 0
push edi
call eax
mov eax, dword [ebp + 0xd4]
test eax, eax
mov ecx, dword [ebp + 0xb4]
lea edi, [esi + ecx*4]
je 0x479668
mov ecx, dword [ebp + 0xd8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x47966d
call fcn.004af167
mov eax, dword [ebp + 0xd4]
lea edx, [edi*8]
sub edx, edi
mov esi, dword [eax + edx*2]
mov ecx, dword [esp + 0x44]
mov eax, 0x66666667
imul esi
sar edx, 2
push 0
mov edi, edx
push 0xff00
shr edi, 0x1f
add edi, edx
mov edx, dword [ebp + 0x8c]
push 0xf4
lea eax, [edi + edi*2]
lea eax, [eax*4 + 0x1d0]
push eax
push edx
push 0x14
push 0xc
add ecx, 0xfffffff4
push 0x42
push ecx
mov ecx, dword [ebp + 0x94]
mov dword [esp + 0x3c], eax
call fcn.0043eca0
mov ecx, dword [ebp + 0x8c]
push 0
lea eax, [edi + edi*4]
push 0xff00
add eax, eax
sub esi, eax
push 0xf4
lea esi, [esi + esi*2]
lea edi, [esi*4 + 0x1d0]
mov esi, dword [esp + 0x50]
push edi
push ecx
mov ecx, dword [ebp + 0x94]
push 0x14
push 0xc
push 0x42
push esi
call fcn.0043eca0
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0x8c]
mov ecx, dword [ebp + 0x94]
push 0
push 0xff00
push 0xf4
push edx
push eax
push 0x14
push 0xc
push 0x9c
lea eax, [esi - 0xc]
push eax
call fcn.0043eca0
mov ecx, dword [ebp + 0x8c]
push 0
push 0xff00
push 0xf4
push edi
push ecx
mov ecx, dword [ebp + 0x94]
push 0x14
push 0xc
push 0x9c
push esi
call fcn.0043eca0
mov ecx, dword [ebp + 0x88]
mov edx, dword [ecx]
push 1
push 0
add esi, 0xffffff98
push esi
mov esi, dword [ebp + 0x94]
push esi
lea eax, [ebx - 0x18]
push 0x5a
push 0x78
push 0xe
push eax
mov eax, dword [edx + 0x44]
call eax
mov eax, dword [ebp + 0xd4]
test eax, eax
mov ecx, dword [ebp + 0xb4]
mov esi, dword [esp + 0x10]
lea edi, [esi + ecx*4]
je 0x4797bb
mov ecx, dword [ebp + 0xd8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4797c0
call fcn.004af167
mov eax, dword [ebp + 0xd4]
lea edx, [edi*8]
sub edx, edi
movzx eax, word [eax + edx*2 + 6]
movzx eax, ax
cdq
mov edi, 0xa
idiv edi
mov ecx, dword [ebp + 0x88]
push 1
push 0xef
add eax, eax
add eax, eax
add eax, eax
push eax
mov eax, dword [ebp + 0x8c]
push eax
push 0xb
push 8
mov edi, edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
push 0x69
lea eax, [ebx - 8]
push eax
call edx
mov ecx, dword [ebp + 0x88]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
push 1
push 0xef
lea edx, [edi*8]
push edx
mov edx, dword [ebp + 0x8c]
push edx
push 0xb
push 8
push 0x69
push ebx
call eax
mov eax, dword [ebp + 0xd4]
test eax, eax
mov ecx, dword [ebp + 0xb4]
lea edi, [esi + ecx*4]
je 0x479869
mov ecx, dword [ebp + 0xd8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x47986e
call fcn.004af167
mov eax, dword [ebp + 0xd4]
lea edx, [edi*8]
sub edx, edi
movzx eax, word [eax + edx*2 + 8]
movzx eax, ax
cdq
mov edi, 0xa
idiv edi
mov ecx, dword [ebp + 0x88]
push 1
push 0xef
add eax, eax
add eax, eax
add eax, eax
push eax
mov eax, dword [ebp + 0x8c]
push eax
push 0xb
push 8
mov edi, edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
push 0x69
lea eax, [ebx + 0x10]
push eax
call edx
mov ecx, dword [ebp + 0x88]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
push 1
push 0xef
lea edx, [edi*8]
push edx
mov edx, dword [ebp + 0x8c]
push edx
push 0xb
push 8
push 0x69
lea edx, [ebx + 0x18]
push edx
call eax
mov eax, dword [ebp + 0xd4]
test eax, eax
mov ecx, dword [ebp + 0xb4]
lea edi, [esi + ecx*4]
je 0x47991a
mov ecx, dword [ebp + 0xd8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x47991f
call fcn.004af167
mov eax, dword [ebp + 0xd4]
lea edx, [edi*8]
sub edx, edi
movzx eax, word [eax + edx*2 + 0xa]
movzx eax, ax
cdq
mov edi, 0xa
idiv edi
mov ecx, dword [ebp + 0x88]
push 1
push 0xef
add eax, eax
add eax, eax
add eax, eax
push eax
mov eax, dword [ebp + 0x8c]
push eax
push 0xb
push 8
mov edi, edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
push 0x69
lea eax, [ebx + 0x28]
push eax
call edx
mov ecx, dword [ebp + 0x88]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
push 1
push 0xef
lea edx, [edi*8]
push edx
mov edx, dword [ebp + 0x8c]
push edx
push 0xb
push 8
push 0x69
lea edx, [ebx + 0x30]
push edx
call eax
mov eax, dword [ebp + 0xd4]
test eax, eax
mov ecx, dword [ebp + 0xb4]
lea edi, [esi + ecx*4]
je 0x4799cb
mov ecx, dword [ebp + 0xd8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x4799d0
call fcn.004af167
mov eax, dword [ebp + 0xd4]
lea edx, [edi*8]
sub edx, edi
movzx eax, word [eax + edx*2 + 0xc]
movzx eax, ax
cdq
mov edi, 0xa
idiv edi
mov ecx, dword [ebp + 0x88]
push 1
push 0xef
add eax, eax
add eax, eax
add eax, eax
push eax
mov eax, dword [ebp + 0x8c]
push eax
push 0xb
push 8
mov edi, edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
push 0x69
lea eax, [ebx + 0x40]
push eax
call edx
mov ecx, dword [ebp + 0x88]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
push 1
push 0xef
lea edx, [edi*8]
push edx
mov edx, dword [ebp + 0x8c]
push edx
push 0xb
push 8
push 0x69
lea edx, [ebx + 0x48]
push edx
call eax
mov eax, dword [ebp + 0x8c]
mov ecx, dword [ebp + 0x88]
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
push 1
push 0xef
push 0x50
push eax
push 0xb
push 8
push 0x69
lea eax, [ebx + 8]
push eax
call edx
mov edx, dword [ebp + 0x8c]
mov ecx, dword [ebp + 0x88]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
push 1
push 0xef
push 0x58
push edx
push 0xb
push 8
push 0x69
lea edx, [ebx + 0x38]
push edx
call eax
sub esp, 0x10
mov eax, esp
lea ecx, [ebx - 0x18]
mov dword [eax], ecx
mov edx, 0x178
mov dword [eax + 4], edx
lea edi, [ebx + 0x60]
mov ecx, 0x1d2
mov dword [eax + 8], edi
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0xb4]
lea edx, [esi + ecx*4]
push edx
push ebp
call fcn.00421ea0
mov esi, dword [esp + 0x10]
jmp 0x479af8
mov edx, dword [ebp + 0x8c]
mov ecx, dword [ebp + 0x88]
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
push 1
push pe_nt_image_headers32
push 0x208
push edx
push 0x5a
push 0x78
push 0xe
lea edx, [ebx - 0x18]
push edx
call eax
mov eax, dword [esp + 0x44]
add eax, 0x78
add esi, 1
add ebx, 0x80
cmp eax, 0x248
mov dword [esp + 0x10], esi
mov dword [esp + 0x44], eax
jb 0x479550
mov ebx, dword [0x4c92a0]
mov eax, 0x204
mov ecx, 0x17a
lea edx, [eax + 0x38]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
xor edi, edi
mov dword [esp + 0x24], edx
push ecx
lea edx, [esp + 0x34]
lea esi, [eax - 0x76]
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], 0x64
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], esi
call ebx
lea eax, [esp + 0x2c]
push eax
lea esi, [ebp + 0x70]
call fcn.0040f810
mov eax, 0x240
mov ecx, 0x17a
lea edx, [eax + 0x38]
lea esi, [ecx + 0x14]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], edx
push ecx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], 0x65
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], esi
call ebx
lea eax, [esp + 0x2c]
push eax
lea esi, [ebp + 0x70]
call fcn.0040f810
call fcn.0044b4e0
sub esp, 0x10
cmp dword [eax + 0xfb0], 1
mov eax, esp
mov ecx, 0x204
mov dword [eax], ecx
lea edx, [ecx - 0x74]
mov ecx, 0x278
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov ecx, 0x1a4
mov dword [eax + 0xc], ecx
jne 0x479bff
push 0x66
push ebp
call fcn.00421ea0
jmp 0x479c32
push 0x3e8
push ebp
call fcn.00421ea0
mov eax, dword [ebp + 0x8c]
mov ecx, dword [ebp + 0x88]
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
push 1
push 0x138
push 0x74
push eax
push 0x14
push 0x74
push 0x26
push 0x204
call edx
mov eax, 0x204
lea ecx, [eax - 0x48]
lea edx, [eax - 0x34]
mov dword [esp + 0x1c], eax
mov eax, 0x278
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], 0x68
mov dword [esp + 0x30], edx
call ebx
lea edx, [esp + 0x2c]
push edx
call fcn.0040f810
cmp dword [ebp + 0xb4], edi
mov esi, 1
mov dword [ebp + 0xc0], esi
mov dword [ebp + 0xc4], esi
jne 0x479cc5
mov edx, dword [ebp + 0x8c]
mov ecx, dword [ebp + 0x88]
push esi
push 0x138
push edi
push edx
push 0x14
push 0x38
mov dword [ebp + 0xc0], edi
mov eax, dword [ecx]
mov eax, dword [eax + 0x44]
push 0x10
push 0x204
call eax
mov ecx, dword [ebp + 0xbc]
cmp ecx, dword [ebp + 0xb4]
jne 0x479d00
mov eax, dword [ebp + 0x8c]
mov ecx, dword [ebp + 0x88]
push esi
push 0x138
push 0x3c
push eax
push 0x14
push 0x38
mov dword [ebp + 0xc4], edi
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
push 0x10
push 0x240
call edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 4