Function at 0x56d004
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.0054b5f8
mov dword [edi + 0x50], 0xa2879f2e
mov dword [edi + 0x54], 0x547d42ae
mov edx, dword [esp + 8]
test byte [edx + 0x20], 8
je 0x56d06e
mov dword [esp + 0x18], 3
jmp 0x56d076
mov dword [esp + 0x18], 0x83
mov ecx, dword [esp + 8]
cmp dword [ecx + 0x3c], 0
je 0x56d0a0
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 0x56d140
lea eax, [esp + 0x9c]
mov ecx, 0x3c
xor edx, edx
call fcn.0054b5f8
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 0x56d123
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 0x56d14d
mov edx, dword [edi + 0x20]
mov ecx, dword [edx]
jmp 0x56d14f
xor ecx, ecx
mov dword [esp + 0x30], ecx
cmp dword [edi + 0x2c], 0
je 0x56d189
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 0x56d1ac
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 0x56d9ff
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.0054b5f8
mov cx, word [esp + 0x2c]
mov word [esi + 6], cx
mov word [esi + 4], 0
jmp 0x56d2cd
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.0056a484
mov ecx, eax
test ecx, ecx
je 0x56d2da
or dword [esi], 0x11000
test byte [ecx + 0x10], 1
je 0x56d2a0
mov eax, dword [ecx]
or dword [esi], 0x40000
movzx edx, word [eax + 2]
and edx, 0x800
cmp edx, 0x800
jne 0x56d287
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 0x56d2ac
mov edx, dword [eax + 0x10]
test edx, edx
je 0x56d2ac
cmp dword [edx], 0
je 0x56d2ac
mov eax, dword [edx]
imul eax, dword [esp + 0x4c]
mov dword [esp + 0x4c], eax
jmp 0x56d2ac
test byte [ecx + 0x10], 0x80
je 0x56d2ac
or dword [esi], 0x80000
cmp word [esi + 4], 0
jne 0x56d2bd
cmp dword [ebx + 0x38], 0
je 0x56d2bd
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 0x56d21a
movzx edx, word [esi + 4]
cmp edx, dword [ebx + 0x24]
jne 0x56d323
cmp byte [ebx + 0x2c], 0
je 0x56d323
test byte [esi + 2], 0xc
jne 0x56d41d
or dword [esi], 0x2000000
cmp dword [edi + 0x2c], 0
je 0x56d318
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 0x56d41d
or dword [esi], 0x4000000
jmp 0x56d41d
cmp byte [ebx + 0x2e], 0
jne 0x56d41d
movzx ecx, word [esi + 4]
cmp ecx, dword [ebx + 0x24]
jne 0x56d33b
or ecx, 0xffffffff
jmp 0x56d345
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.0056a484
test eax, eax
je 0x56d41d
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.0056a484
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.0056a484
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.0056c944
cmp dword [esp + 0x68], 0
je 0x56d3f6
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 0x56d417
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 0x56d484
mov ecx, dword [esp + 8]
test byte [ecx + 0x20], 8
jne 0x56d484
mov dword [esp + 0x70], 2
lea eax, [esp + 0x70]
mov edx, ebx
push eax
mov eax, edi
mov ecx, dword [esp + 0x10]
call fcn.0056ccc4
mov word [esi + 6], ax
movzx ecx, word [esi + 6]
cmp ecx, dword [esp + 0x2c]
jg 0x56d45c
test byte [esi + 3], 4
je 0x56d462
or dword [esi], 0x800000
movzx eax, word [esi + 6]
cmp eax, dword [esp + 0x30]
jne 0x56d477
mov byte [esp + 0x5c], 0
or dword [esi], 0x22000
test byte [esp + 0x70], 1
je 0x56d484
or dword [esi], 0x1000000
cmp byte [esp + 0x5d], 0
je 0x56d4bd
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.0056b5f4
test eax, eax
je 0x56d4bd
test byte [esi + 2], 4
jne 0x56d4bd
mov byte [esp + 0x5d], 0
or dword [esi], 0x40022000
cmp dword [esp + 0x10], 0
je 0x56d54e
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 0x56d526
mov ecx, dword [esp + 0x98]
mov ebp, dword [ecx]
cmp ebp, 0x3f
jge 0x56d51a
mov eax, 1
xor edx, edx
mov ecx, ebp
call fcn.0054b350
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 0x56d4f2
cmp dword [esp + 0x78], 0
jne 0x56d549
cmp dword [esp + 0x74], 0
jne 0x56d549
or dword [esi], 0x400000
jmp 0x56d54e
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 0x56d604
fld qword [esi + 8]
fmul dword [0x56da40]
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 0x56d604
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.0054b1ec
mov dword [esp + 0x4c], eax
fld qword [esi + 8]
fld dword [0x56da44]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
jne 0x56d673
movzx edx, word [esi + 4]
dec edx
jne 0x56d673
cmp dword [esp + 0x60], 0
je 0x56d673
mov ecx, dword [esp + 0x3c]
cmp dword [ecx + 4], 1
jbe 0x56d673
mov ecx, dword [esp + 0x60]
test byte [ecx + 0x10], 0x82
je 0x56d654
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.0056cae0
jmp 0x56d673
cmp dword [esp + 0x48], 0
jne 0x56d673
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.0056cb7c
fld qword [esi + 8]
fdiv qword [esp + 0x50]
fstp qword [esi + 8]
wait
fld qword [esi + 8]
fld dword [0x56da44]
fxch st(1)
fucompp
fnstsw ax
test ah, 5
jp 0x56d69e
xor edx, edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], 0x3ff00000
mov ecx, dword [esi]
and ecx, 0xfe7fffff
cmp ecx, 0x400000
jne 0x56d6f3
mov ecx, dword [esp + 4]
test byte [ecx + 0x16], 4
jne 0x56d6f3
cmp dword [0x62e0fc], 0
je 0x56d6f3
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 0x56d7bc
test dword [esi], 0x100f3000
jne 0x56d741
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 0x56d7bc
and dword [esi], 0xff7fffff
mov ax, word [esp + 0x2c]
mov word [esi + 6], ax
jmp 0x56d7bc
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.0056b80c
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 0x56d7ad
cmp byte [esp + 0x5e], 0
je 0x56d79c
fild dword [esp + 0x4c]
fadd qword [esi + 8]
fmul qword [esp + 0x40]
fadd qword [esi + 0x18]
fstp qword [esi + 0x18]
wait
jmp 0x56d7bc
fild dword [esp + 0x4c]
fmul qword [esp + 0x40]
fadd qword [esi + 0x18]
fstp qword [esi + 0x18]
wait
jmp 0x56d7bc
fild dword [esp + 0x4c]
fmul qword [esp + 0x40]
fadd qword [esi + 0x18]
fstp qword [esi + 0x18]
wait
cmp byte [esp + 0x5c], 0
je 0x56d838
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.0056b80c
fstp qword [esp + 0x80]
wait
cmp word [esi + 6], 0
je 0x56d805
mov edx, 2
jmp 0x56d80a
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 0x56d85a
push dword [esi + 0xc]
push dword [esi + 8]
call fcn.0056b80c
fmul qword [esi + 8]
fmul dword [0x56da48]
fadd qword [esi + 0x18]
fstp qword [esi + 0x18]
wait
fld qword [esi + 8]
fld dword [0x56da40]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
jne 0x56d9a0
fld qword [esi + 0x18]
fld qword [edi + 0x50]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x41
jp 0x56d9a0
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.0056a1d0
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 0x56d964
test byte [ecx + 0x12], 2
jne 0x56d960
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 0x56d8f6
cmp eax, dword [esp + 0x90]
jne 0x56d960
test byte [ecx + 0x10], 0x83
je 0x56d920
cmp dword [esp + 0x88], 0
je 0x56d911
dec dword [esp + 0x88]
jmp 0x56d960
fld xword [0x56da4c]
fmul qword [esi + 8]
fstp qword [esi + 8]
wait
jmp 0x56d960
test byte [ecx + 0x10], 0x3c
je 0x56d948
cmp dword [esp + 0x8c], 0
je 0x56d939
dec dword [esp + 0x8c]
jmp 0x56d960
fld xword [0x56da58]
fmul qword [esi + 8]
fstp qword [esi + 8]
wait
jmp 0x56d960
movzx eax, word [ecx + 0x10]
cmp eax, 0x800
je 0x56d960
fld dword [0x56da64]
fmul qword [esi + 8]
fstp qword [esi + 8]
wait
dec ebp
add ecx, 0x28
fld qword [esi + 8]
fld dword [0x56da40]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
jne 0x56d980
test ebp, ebp
jne 0x56d8d0
fld qword [esi + 8]
fld dword [0x56da40]
fxch st(1)
fucompp
fnstsw ax
test ah, 5
jp 0x56d9a0
xor edx, edx
mov dword [esi + 8], edx
mov dword [esi + 0xc], 0x40000000
cmp dword [esp + 0x10], 0
je 0x56d9ac
cmp dword [esi], 0
je 0x56d9d6
lea edx, [edi + 0x38]
mov eax, esi
call fcn.00569fa0
test eax, eax
je 0x56d9d6
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 0x56d9ff
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 0x56d1b4
cmp dword [edi + 0x20], 0
jne 0x56da17
mov eax, dword [esp]
mov edx, dword [eax]
test byte [edx + 0x1a], 1
je 0x56da17
or dword [edi + 0x38], 0x1000000
mov eax, edi
call fcn.0056b868
mov eax, edi
call fcn.0056bb7c
mov edx, dword [esp + 0x14]
or dword [edi + 0x38], edx
add esp, 0x140
pop ebp
pop edi
pop esi
pop ebx
ret