Function at 0x56cd88
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
push edi
mov edi, eax
push ebp
add esp, 0xfffffec0
mov eax, dword [edi]
mov dword [esp], eax
lea esi, [esp + 0xd8]
mov edx, dword [edi + 4]
mov dword [esp + 4], edx
mov ecx, dword [edi + 8]
mov dword [esp + 8], ecx
mov ecx, 0x28
mov eax, dword [esp + 8]
mov edx, dword [eax + 0x24]
lea eax, [edi + 0x38]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 0x24], 0xffffffff
call fcn.0054b37c
mov dword [edi + 0x50], 0xa2879f2e
mov dword [edi + 0x54], 0x547d42ae
mov edx, dword [esp + 8]
test byte [edx + 0x20], 8
je 0x56cdf2
mov dword [esp + 0x18], 3
jmp 0x56cdfa
mov dword [esp + 0x18], 0x83
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x3c], 0
je 0x56ce24
mov eax, dword [esp + 8]
mov ebx, dword [eax + 0x3c]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], 0xffffcfff
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], edx
jmp 0x56cec4
lea eax, [esp + 0x9c]
mov ecx, 0x3c
xor edx, edx
call fcn.0054b37c
mov dword [esp + 0xc0], 1
lea eax, [esp + 0x24]
lea edx, [esp + 0x1c]
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], edx
mov byte [esp + 0xc8], 5
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x10]
mov dword [esp + 0xa8], eax
mov edx, dword [esp + 8]
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 1
mov edx, dword [esp + 8]
mov ecx, dword [edx + 0x10]
mov eax, dword [ecx + 8]
mov dword [esp + 0x38], eax
mov edx, dword [esp + 8]
test byte [edx + 0x21], 1
jne 0x56cea7
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xb0], ecx
mov dword [esp + 0x28], 0xfff0ffff
mov dword [esp + 0x14], 3
xor eax, eax
lea ebx, [esp + 0x9c]
mov dword [esp + 0x10], eax
cmp dword [edi + 0x20], 0
je 0x56ced1
mov edx, dword [edi + 0x20]
mov ecx, dword [edx]
jmp 0x56ced3
xor ecx, ecx
mov dword [esp + 0x30], ecx
cmp dword [edi + 0x2c], 0
je 0x56cf0d
mov eax, dword [edi + 0x2c]
mov edx, eax
lea eax, [edx + eax*4]
lea eax, [edx + eax*2]
mov edx, dword [edi + 0x34]
movzx eax, word [edx + eax*8 - 0x52]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x30]
setl cl
and ecx, 1
mov byte [esp + 0x34], cl
mov byte [esp + 0x35], 0
jmp 0x56cf30
xor eax, eax
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x30], 0
setg dl
and edx, 1
mov byte [esp + 0x34], dl
cmp dword [edi + 0x24], 0
setne cl
and ecx, 1
mov byte [esp + 0x35], cl
test ebx, ebx
je 0x56d783
mov eax, dword [ebx + 8]
xor edx, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], 1
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], 0x3ff00000
mov dword [esp + 0x58], eax
xor eax, eax
mov dl, byte [esp + 0x34]
mov byte [esp + 0x5c], dl
xor edx, edx
mov cl, byte [esp + 0x35]
mov byte [esp + 0x5d], cl
mov ecx, 0x28
mov byte [esp + 0x5e], 0
mov dword [esp + 0x60], eax
mov eax, esi
call fcn.0054b37c
mov cx, word [esp + 0x2c]
mov word [esi + 6], cx
mov word [esi + 4], 0
jmp 0x56d051
mov edx, dword [ebx + 4]
mov eax, dword [edx + eax*4]
push dword [edi + 0x14]
push dword [edi + 0x10]
mov ecx, dword [esp + 0x1c]
push ecx
mov edx, dword [esp + 0x1c]
push edx
mov ecx, eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
call fcn.0056a208
mov ecx, eax
test ecx, ecx
je 0x56d05e
or dword [esi], 0x11000
test byte [ecx + 0x10], 1
je 0x56d024
mov eax, dword [ecx]
or dword [esi], 0x40000
movzx edx, word [eax + 2]
and edx, 0x800
cmp edx, 0x800
jne 0x56d00b
mov eax, dword [esp + 0x4c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], 1
jmp 0x56d030
mov edx, dword [eax + 0x10]
test edx, edx
je 0x56d030
cmp dword [edx], 0
je 0x56d030
mov eax, dword [edx]
imul eax, dword [esp + 0x4c]
mov dword [esp + 0x4c], eax
jmp 0x56d030
test byte [ecx + 0x10], 0x80
je 0x56d030
or dword [esi], 0x80000
cmp word [esi + 4], 0
jne 0x56d041
cmp dword [ebx + 0x38], 0
je 0x56d041
mov dword [esp + 0x60], ecx
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x1c]
or dword [esi + 0x20], eax
or dword [esi + 0x24], edx
inc word [esi + 4]
movzx eax, word [esi + 4]
cmp eax, dword [ebx + 0x24]
jl 0x56cf9e
movzx edx, word [esi + 4]
cmp edx, dword [ebx + 0x24]
jne 0x56d0a7
cmp byte [ebx + 0x2c], 0
je 0x56d0a7
test byte [esi + 2], 0xc
jne 0x56d1a1
or dword [esi], 0x2000000
cmp dword [edi + 0x2c], 0
je 0x56d09c
mov ecx, dword [edi + 0x2c]
mov eax, ecx
lea ecx, [eax + ecx*4]
lea ecx, [eax + ecx*2]
mov edx, dword [edi + 0x34]
test byte [edx + ecx*8 - 0x55], 4
je 0x56d1a1
or dword [esi], 0x4000000
jmp 0x56d1a1
cmp byte [ebx + 0x2e], 0
jne 0x56d1a1
movzx ecx, word [esi + 4]
cmp ecx, dword [ebx + 0x24]
jne 0x56d0bf
or ecx, 0xffffffff
jmp 0x56d0c9
movzx eax, word [esi + 4]
mov edx, dword [ebx + 4]
mov ecx, dword [edx + eax*4]
mov dword [esp + 0x64], ecx
push dword [edi + 0x14]
push dword [edi + 0x10]
push 0x3c
mov edx, dword [esp + 0x1c]
push edx
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
call fcn.0056a208
test eax, eax
je 0x56d1a1
push dword [edi + 0x14]
push dword [edi + 0x10]
push 0x18
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
call fcn.0056a208
mov dword [esp + 0x68], eax
push dword [edi + 0x14]
push dword [edi + 0x10]
push 0x24
mov eax, dword [esp + 0x1c]
push eax
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
call fcn.0056a208
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x6c]
push ecx
mov eax, dword [esp + 0x6c]
push eax
lea edx, [esp + 0x58]
push edx
mov edx, ebx
movzx ecx, word [esi + 4]
mov eax, dword [esp + 0xc]
call fcn.0056c6c8
cmp dword [esp + 0x68], 0
je 0x56d17a
mov dword [esp + 0x58], 1
or dword [esi], 0x100000
mov ecx, dword [esp + 0x68]
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x1c]
or dword [esi + 0x20], eax
or dword [esi + 0x24], edx
cmp dword [esp + 0x6c], 0
je 0x56d19b
inc dword [esp + 0x58]
or dword [esi], 0x200000
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx + 0x18]
mov edx, dword [ecx + 0x1c]
or dword [esi + 0x20], eax
or dword [esi + 0x24], edx
or dword [esi], 0x22000
cmp byte [esp + 0x5c], 0
je 0x56d208
mov ecx, dword [esp + 8]
test byte [ecx + 0x20], 8
jne 0x56d208
mov dword [esp + 0x70], 2
lea eax, [esp + 0x70]
mov edx, ebx
push eax
mov eax, edi
mov ecx, dword [esp + 0x10]
call fcn.0056ca48
mov word [esi + 6], ax
movzx ecx, word [esi + 6]
cmp ecx, dword [esp + 0x2c]
jg 0x56d1e0
test byte [esi + 3], 4
je 0x56d1e6
or dword [esi], 0x800000
movzx eax, word [esi + 6]
cmp eax, dword [esp + 0x30]
jne 0x56d1fb
mov byte [esp + 0x5c], 0
or dword [esi], 0x22000
test byte [esp + 0x70], 1
je 0x56d208
or dword [esi], 0x1000000
cmp byte [esp + 0x5d], 0
je 0x56d241
mov edx, dword [esp + 0xc]
push edx
mov ecx, dword [edi + 0x24]
push ecx
movzx eax, word [esi + 4]
push eax
mov ecx, ebx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
call fcn.0056b378
test eax, eax
je 0x56d241
test byte [esi + 2], 4
jne 0x56d241
mov byte [esp + 0x5d], 0
or dword [esi], 0x40022000
cmp dword [esp + 0x10], 0
je 0x56d2d2
mov ecx, dword [esp + 8]
xor edx, edx
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x74], eax
mov eax, dword [ecx + 0x34]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
mov edx, eax
mov dword [esp + 0x98], edx
jmp 0x56d2aa
mov ecx, dword [esp + 0x98]
mov ebp, dword [ecx]
cmp ebp, 0x3f
jge 0x56d29e
mov eax, 1
xor edx, edx
mov ecx, ebp
call fcn.0054b0d4
not eax
not edx
and dword [esp + 0x74], eax
and dword [esp + 0x78], edx
inc dword [esp + 0x7c]
add dword [esp + 0x98], 4
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x24]
cmp eax, dword [esp + 0x7c]
jg 0x56d276
cmp dword [esp + 0x78], 0
jne 0x56d2cd
cmp dword [esp + 0x74], 0
jne 0x56d2cd
or dword [esi], 0x400000
jmp 0x56d2d2
mov byte [esp + 0x5e], 1
movzx edx, word [esi + 4]
mov eax, dword [esp + 0x3c]
mov edx, dword [eax + edx*4]
imul edx, dword [esp + 0x4c]
mov dword [esp + 0x100], edx
xor ecx, ecx
mov dword [esp + 0x104], ecx
fild qword [esp + 0x100]
fstp qword [esi + 8]
wait
cmp dword [esp + 0x48], 0
je 0x56d388
fld qword [esi + 8]
fmul dword [0x56d7c4]
mov ecx, dword [esp + 0x3c]
xor edx, edx
mov eax, dword [ecx]
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], edx
fild qword [esp + 0x108]
fcompp
fnstsw ax
test ah, 5
jp 0x56d388
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx]
shr ecx, 1
mov dword [esp + 0x110], ecx
xor ecx, ecx
mov dword [esp + 0x114], ecx
fild qword [esp + 0x110]
fstp qword [esi + 8]
wait
movzx eax, word [esi + 4]
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx + eax*4]
xor eax, eax
mov dword [esp + 0x118], ecx
mov dword [esp + 0x11c], eax
fild qword [esp + 0x118]
fdivr qword [esi + 8]
call fcn.0054af70
mov dword [esp + 0x4c], eax
fld qword [esi + 8]
fld dword [0x56d7c8]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
jne 0x56d3f7
movzx edx, word [esi + 4]
dec edx
jne 0x56d3f7
cmp dword [esp + 0x60], 0
je 0x56d3f7
mov ecx, dword [esp + 0x3c]
cmp dword [ecx + 4], 1
jbe 0x56d3f7
mov ecx, dword [esp + 0x60]
test byte [ecx + 0x10], 0x82
je 0x56d3d8
lea eax, [esi + 8]
push eax
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 4]
mov ecx, dword [edx]
mov edx, ebx
mov ecx, dword [ecx + 0xc]
call fcn.0056c864
jmp 0x56d3f7
cmp dword [esp + 0x48], 0
jne 0x56d3f7
lea ecx, [esi + 8]
push ecx
mov eax, dword [esp + 0x64]
mov edx, dword [eax]
mov ecx, dword [edx + 0x10]
mov edx, ebx
mov eax, dword [esp + 4]
call fcn.0056c900
fld qword [esi + 8]
fdiv qword [esp + 0x50]
fstp qword [esi + 8]
wait
fld qword [esi + 8]
fld dword [0x56d7c8]
fxch st(1)
fucompp
fnstsw ax
test ah, 5
jp 0x56d422
xor edx, edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], 0x3ff00000
mov ecx, dword [esi]
and ecx, 0xfe7fffff
cmp ecx, 0x400000
jne 0x56d477
mov ecx, dword [esp + 4]
test byte [ecx + 0x16], 4
jne 0x56d477
cmp dword [0x5ca100], 0
je 0x56d477
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
lea edx, [edx + edx*2]
add edx, dword [ebx + 0x24]
xor ecx, ecx
mov dword [esp + 0x120], edx
mov dword [esp + 0x124], ecx
fild qword [esp + 0x120]
fstp qword [esi + 0x18]
wait
or dword [esi], 0x80020000
jmp 0x56d540
test dword [esi], 0x100f3000
jne 0x56d4c5
mov eax, dword [esp + 0x3c]
mov edx, dword [eax]
shl edx, 2
xor ecx, ecx
mov dword [esp + 0x128], edx
mov dword [esp + 0x12c], ecx
fild qword [esp + 0x128]
fstp qword [esi + 0x18]
wait
and dword [esi], 0xffbfffff
cmp dword [esp + 0x10], 0
je 0x56d540
and dword [esi], 0xff7fffff
mov ax, word [esp + 0x2c]
mov word [esi + 6], ax
jmp 0x56d540
mov edx, dword [esp + 0x3c]
xor eax, eax
mov ecx, dword [edx]
mov dword [esp + 0x130], ecx
mov dword [esp + 0x134], eax
fild qword [esp + 0x130]
add esp, 0xfffffff8
fstp qword [esp]
call fcn.0056b590
fstp qword [esp + 0x40]
wait
mov edx, dword [esi + 8]
mov dword [esi + 0x18], edx
mov edx, dword [esi + 0xc]
mov dword [esi + 0x1c], edx
cmp dword [esp + 0x10], 0
je 0x56d531
cmp byte [esp + 0x5e], 0
je 0x56d520
fild dword [esp + 0x4c]
fadd qword [esi + 8]
fmul qword [esp + 0x40]
fadd qword [esi + 0x18]
fstp qword [esi + 0x18]
wait
jmp 0x56d540
fild dword [esp + 0x4c]
fmul qword [esp + 0x40]
fadd qword [esi + 0x18]
fstp qword [esi + 0x18]
wait
jmp 0x56d540
fild dword [esp + 0x4c]
fmul qword [esp + 0x40]
fadd qword [esi + 0x18]
fstp qword [esi + 0x18]
wait
cmp byte [esp + 0x5c], 0
je 0x56d5bc
movzx ecx, word [esi + 6]
mov eax, dword [esp + 0x30]
sub eax, ecx
mov dword [esp + 0x138], eax
fild dword [esp + 0x138]
fmul qword [esi + 8]
fild dword [esp + 0x30]
add esp, 0xfffffff8
fdivp st(1)
fstp qword [esp]
call fcn.0056b590
fstp qword [esp + 0x80]
wait
cmp word [esi + 6], 0
je 0x56d589
mov edx, 2
jmp 0x56d58e
mov edx, 3
mov dword [esp + 0x13c], edx
fild dword [esp + 0x13c]
fmul qword [esp + 0x80]
fstp qword [esp + 0x80]
wait
fld qword [esi + 8]
fmul qword [esp + 0x80]
fadd qword [esi + 0x18]
fstp qword [esi + 0x18]
wait
cmp byte [esp + 0x5d], 0
je 0x56d5de
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.0056b590
fmul qword [esi + 8]
fmul dword [0x56d7cc]
fadd qword [esi + 0x18]
fstp qword [esi + 0x18]
wait
fld qword [esi + 8]
fld dword [0x56d7c4]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
jne 0x56d724
fld qword [esi + 0x18]
fld qword [edi + 0x50]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x41
jp 0x56d724
movzx edx, word [esi + 4]
mov dword [esp + 0x88], edx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x8c], ecx
mov ecx, dword [esp + 0xc]
push ecx
mov eax, dword [esp + 8]
mov edx, dword [eax + 4]
push edx
call fcn.00569f54
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], edx
mov ecx, dword [esp + 4]
mov eax, dword [esp + 4]
mov ebp, dword [eax + 0x18]
mov ecx, dword [ecx + 0x20]
jmp 0x56d6e8
test byte [ecx + 0x12], 2
jne 0x56d6e4
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
and eax, dword [ecx + 0x20]
and edx, dword [ecx + 0x24]
cmp edx, dword [esp + 0x94]
jne 0x56d67a
cmp eax, dword [esp + 0x90]
jne 0x56d6e4
test byte [ecx + 0x10], 0x83
je 0x56d6a4
cmp dword [esp + 0x88], 0
je 0x56d695
dec dword [esp + 0x88]
jmp 0x56d6e4
fld xword [0x56d7d0]
fmul qword [esi + 8]
fstp qword [esi + 8]
wait
jmp 0x56d6e4
test byte [ecx + 0x10], 0x3c
je 0x56d6cc
cmp dword [esp + 0x8c], 0
je 0x56d6bd
dec dword [esp + 0x8c]
jmp 0x56d6e4
fld xword [0x56d7dc]
fmul qword [esi + 8]
fstp qword [esi + 8]
wait
jmp 0x56d6e4
movzx eax, word [ecx + 0x10]
cmp eax, 0x800
je 0x56d6e4
fld dword [0x56d7e8]
fmul qword [esi + 8]
fstp qword [esi + 8]
wait
dec ebp
add ecx, 0x28
fld qword [esi + 8]
fld dword [0x56d7c4]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
jne 0x56d704
test ebp, ebp
jne 0x56d654
fld qword [esi + 8]
fld dword [0x56d7c4]
fxch st(1)
fucompp
fnstsw ax
test ah, 5
jp 0x56d724
xor edx, edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], 0x40000000
cmp dword [esp + 0x10], 0
je 0x56d730
cmp dword [esi], 0
je 0x56d75a
lea edx, [edi + 0x38]
mov eax, esi
call fcn.00569d24
test eax, eax
je 0x56d75a
push esi
push edi
add edi, 0x38
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, dword [esp + 0x28]
and dword [edi + 0x38], eax
mov edx, dword [esp + 0x10]
mov dword [edi + 0x48], edx
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x3c], 0
jne 0x56d783
mov dword [esp + 0x28], 0xffffcfff
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x56cf38
cmp dword [edi + 0x20], 0
jne 0x56d79b
mov eax, dword [esp]
mov edx, dword [eax]
test byte [edx + 0x1a], 1
je 0x56d79b
or dword [edi + 0x38], 0x1000000
mov eax, edi
call fcn.0056b5ec
mov eax, edi
call fcn.0056b900
mov edx, dword [esp + 0x14]
or dword [edi + 0x38], edx
add esp, 0x140
pop ebp
pop edi
pop esi
pop ebx
ret